package excercise;

public class EX05_040_Novel {

	private int mno;
	private String title;
	private String writer;
	
	public EX05_040_Novel() {
		mno = 0;
		title = null;
		writer = null;
	}
	public EX05_040_Novel(int mno, String title, String writer) {
		this.mno = mno;
		this.title = title;
		this.writer=writer;
	}
	
	public void setMno(int mno) { this.mno = mno; }
	public void setTitle(String title) { this.title = title; }
	public void setWriter(String writer) { this.writer = writer; }
	public int getMno() { return mno; }
	public String getTitle() { return title; }
	public String getWriter() { return writer; }

	@Override
	public boolean equals(Object obj) {
		if(obj != null && obj instanceof EX05_040_Novel) {
			return mno == ((EX05_040_Novel)obj).mno;
		} else { return false; }
	}
	
	static int getLastFees(int days) {
		return days * 300; 
	}
}